new Vue({
    el: '#app',
    data: {
        temperature: '',
        CRP: '',
        WBC: '',
        PA02: '',
        thromB: '',
        
    },
    methods: {
        vaild() {
            if (this.temperature > 45 || this.temperature < 32) {
                this.$toast('体温输入有误');
            } else if (this.CRP > 20 || this.CRP < 0 || this.CRP == '') {
                this.$toast('CRP输入有误');
            } else if (this.CRP > 20 || this.CRP < 0.15 || this.CRP == '') {
                this.$toast('CRP输入有误');
            } else if (this.WBC > 20 || this.WBC < 4 || this.WBC == '') {
                this.$toast('WBC输入有误');
            } else if (this.PA02 == '') {
                this.$toast('PA02/FiO2输入有误');
            } else if (this.thromB == '' || this.thromB > 300 || this.thromB < 100) {
                this.$toast('血小板输入有误');
            } else {
                localStorage.setItem("fourIndex",4)
                window.location.href = "effect.html"
            }
        },
       /*  vaildT(t){
            if(t>45||t<32){
                this.$toast('体温输入有误');
            }
        } */
    },
    
})